(b) the aggregate of i. the portion of the maximum amount that would be deductible by the taxpayer in computing the taxpayer’s income for the year under section 371 that is attributable to those sources if the amount determined under paragraph b of section 374 for the taxpayer in respect of the year were equal to the amount by which the amount determined under the second paragraph exceeds the aggregate of all amounts each of which is the portion of an amount, other than a portion that results in a reduction of the amount otherwise determined under subparagraph a of the second paragraph, that is attributable to those sources and that would be deducted under section 418.17 in computing the taxpayer’s income for the year if the maximum amounts deductible for the year under section 418.17 were deducted,
ii. the maximum amount that would be deductible by the taxpayer in computing the taxpayer’s income for the year under section 418.1.10 in relation to those sources if(1) the amount deducted in computing the taxpayer’s income for the year under section 371 in relation to those sources were the amount determined under subparagraph i,
(2) the amounts deducted in computing the taxpayer’s income for the year under sections 418.17 and 418.17.3 in relation to those sources were the maximum amounts deductible under those sections,
(3) for the purposes of sections 418.1.3 to 418.1.5, the total of the amounts designated for the year under subparagraph ii of paragraph a of section 330 in respect of a disposition in the year by the taxpayer of foreign resource properties in relation to the foreign country were the maximum total that could be so designated without any reduction in the maximum amount that would be determined for the year under subparagraph i in respect of the taxpayer and the foreign country if subparagraph b of the second paragraph were read without reference to the assumption made therein in relation to designations made under subparagraph ii of paragraph a of section 330, and
(4) the amount determined under paragraph b of section 418.1.10 were nil; and
iii. the aggregate of all amounts each of which is the maximum amount attributable to one of those sources that the taxpayer may deduct in computing the taxpayer’s income for the year under section 418.17 or 418.17.3.